package com.yeyks.dal.dao;

import com.yeyks.dal.domain.ShareLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface ShareLogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShareLog record);

    ShareLog selectByPrimaryKey(Integer id);

    List<ShareLog> selectAll();

    int updateByPrimaryKey(ShareLog record);

    int getCount(@Param("gmtStart") Date gmtStart, @Param("gmtEnd") Date gmtEnd, @Param("type") String type
    );

    List<Map> getCountGroupByType(@Param("gmtStart") Date gmtStart, @Param("gmtEnd") Date gmtEnd
    );

    List<Map> countGroupByDay(@Param("gmtStart") Date gmtStart, @Param("gmtEnd") Date gmtEnd);
}